﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web.Master" AutoEventWireup="true" CodeBehind="deliver_address.aspx.cs" Inherits="web.Member.deliver_address" %>

<%@ Register Src="~/Member/Member_NAV.ascx" TagPrefix="uc1" TagName="Member_NAV" %>
<%@ Import Namespace="PRO.Common" %>
<%@ Register TagPrefix="url" Namespace="ActionlessForm" Assembly="ActionlessForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Content" runat="server">
    <uc1:Member_NAV runat="server" ID="Member_NAV" />
    <url:Form runat="server">
        <table style="width: 700px;">
            <tr>
                <th style="width: 80px;">收货人</th>
                <th>收货地址</th>
                <th style="width: 100px;">邮编</th>
                <th style="width: 150px;">电话/手机</th>
                <th style="width: 150px;"></th>
                <th style="width: 130px;">操作</th>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                <ItemTemplate>
                    <tr>
                        <td><%#Eval("consignee") %></td>
                        <td><%#Eval("address") %></td>
                        <td><%#Eval("zip") %></td>
                        <td><%#Eval("phone") %><%#(!Eval("phone").ToString().IsNullOrWhiteSpace()&&!Eval("moble").ToString().IsNullOrWhiteSpace())?"/":"" %><%#Eval("moble") %></td>
                        <td><%#(Eval("default_addr").ToBoolean(false))?"默认地址":"" %>
                        </td>
                        <td>
                            <asp:LinkButton CommandArgument='<%#Eval("id") %>' CommandName="default" ID="LinkButton1" Visible='<%#(Eval("default_addr").ToBoolean(false))?false:true %>' runat="server">设为默认</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton3" OnClientClick="return confirm('确定删除吗？');" CommandArgument='<%#Eval("id") %>' CommandName="del" runat="server">删除</asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>

        </table>
        <a href="/member/address/add">添加收货地址</a>
        <%if (CVGRequest.GetQueryString("action") == "select")
          {%>
        <asp:Button ID="Button1" OnClick="Button1_Click" runat="server" Text="确定此地址去结算" />
        <%} %>
    </url:Form>
</asp:Content>
